Optimal. Leaf size=69 \[ \frac{b \log (a+b \sinh (c+d x))}{d \left (a^2+b^2\right )}+\frac{a \tan ^{-1}(\sinh (c+d x))}{d \left (a^2+b^2\right )}-\frac{b \log (\cosh (c+d x))}{d \left (a^2+b^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0698349, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {2668, 706, 31, 635, 204, 260} \[ \frac{b \log (a+b \sinh (c+d x))}{d \left (a^2+b^2\right )}+\frac{a \tan ^{-1}(\sinh (c+d x))}{d \left (a^2+b^2\right )}-\frac{b \log (\cosh (c+d x))}{d \left (a^2+b^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2668
Rule 706
Rule 31
Rule 635
Rule 204
Rule 260
Rubi steps
\begin{align*} \int \frac{\text{sech}(c+d x)}{a+b \sinh (c+d x)} \, dx &=-\frac{b \operatorname{Subst}\left (\int \frac{1}{(a+x) \left (-b^2-x^2\right )} \, dx,x,b \sinh (c+d x)\right )}{d}\\ &=\frac{b \operatorname{Subst}\left (\int \frac{1}{a+x} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}+\frac{b \operatorname{Subst}\left (\int \frac{-a+x}{-b^2-x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}\\ &=\frac{b \log (a+b \sinh (c+d x))}{\left (a^2+b^2\right ) d}+\frac{b \operatorname{Subst}\left (\int \frac{x}{-b^2-x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}-\frac{(a b) \operatorname{Subst}\left (\int \frac{1}{-b^2-x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}\\ &=\frac{a \tan ^{-1}(\sinh (c+d x))}{\left (a^2+b^2\right ) d}-\frac{b \log (\cosh (c+d x))}{\left (a^2+b^2\right ) d}+\frac{b \log (a+b \sinh (c+d x))}{\left (a^2+b^2\right ) d}\\ \end{align*}
Mathematica [A] time = 0.0963634, size = 114, normalized size = 1.65 \[ -\frac{b \left (\left (\sqrt{-b^2}-a\right ) \log \left (\sqrt{-b^2}-b \sinh (c+d x)\right )-2 \sqrt{-b^2} \log (a+b \sinh (c+d x))+\left (a+\sqrt{-b^2}\right ) \log \left (\sqrt{-b^2}+b \sinh (c+d x)\right )\right )}{2 \sqrt{-b^2} d \left (a^2+b^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 100, normalized size = 1.5 \begin{align*}{\frac{b}{d \left ({a}^{2}+{b}^{2} \right ) }\ln \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}a-2\,\tanh \left ( 1/2\,dx+c/2 \right ) b-a \right ) }-{\frac{b}{d \left ({a}^{2}+{b}^{2} \right ) }\ln \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}+1 \right ) }+2\,{\frac{a\arctan \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) }{d \left ({a}^{2}+{b}^{2} \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.6696, size = 128, normalized size = 1.86 \begin{align*} -\frac{2 \, a \arctan \left (e^{\left (-d x - c\right )}\right )}{{\left (a^{2} + b^{2}\right )} d} + \frac{b \log \left (-2 \, a e^{\left (-d x - c\right )} + b e^{\left (-2 \, d x - 2 \, c\right )} - b\right )}{{\left (a^{2} + b^{2}\right )} d} - \frac{b \log \left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}{{\left (a^{2} + b^{2}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.15555, size = 247, normalized size = 3.58 \begin{align*} \frac{2 \, a \arctan \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right ) + b \log \left (\frac{2 \,{\left (b \sinh \left (d x + c\right ) + a\right )}}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right ) - b \log \left (\frac{2 \, \cosh \left (d x + c\right )}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right )}{{\left (a^{2} + b^{2}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{sech}{\left (c + d x \right )}}{a + b \sinh{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14886, size = 171, normalized size = 2.48 \begin{align*} \frac{b^{2} \log \left ({\left | b{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} + 2 \, a \right |}\right )}{a^{2} b d + b^{3} d} + \frac{{\left (\pi + 2 \, \arctan \left (\frac{1}{2} \,{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )} e^{\left (-d x - c\right )}\right )\right )} a}{2 \,{\left (a^{2} d + b^{2} d\right )}} - \frac{b \log \left ({\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{2} + 4\right )}{2 \,{\left (a^{2} d + b^{2} d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]